package com.foreveross.taskservice.taskcache;

import java.io.Serializable;
import java.util.LinkedHashSet;

import com.foreveross.taskservice.common.model.AbstractTaskModel;
import com.google.common.collect.Sets;

public class QueryResult implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6622836880132558867L;

	private String resultId;
	private long resultExpires;//过期时间
	private LinkedHashSet<AbstractTaskModel> result=Sets.newLinkedHashSet();
	private int count;//本次返回结果数
	private int offset;//下标索引
	private int sum;//总共结果数
	
	
	
	
	public QueryResult() {
		super();
	}
	public String getResultId() {
		return resultId;
	}
	public void setResultId(String resultId) {
		this.resultId = resultId;
	}
	public LinkedHashSet<AbstractTaskModel> getResult() {
		return result;
	}
	public void setResult(LinkedHashSet<AbstractTaskModel> result) {
		this.result = result;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getOffset() {
		return offset;
	}
	public void setOffset(int offset) {
		this.offset = offset;
	}
	public int getSum() {
		return sum;
	}
	public void setSum(int sum) {
		this.sum = sum;
	}
	public long getResultExpires() {
		return resultExpires;
	}
	public void setResultExpires(long resultExpires) {
		this.resultExpires = resultExpires;
	}
	
	
	
	
}
